package com.teddy.customWidgets;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.CoolBar;
import org.eclipse.swt.widgets.Tree;

import com.teddy.util.Constants;

public class ButtonBar extends CoolBar {

	private Tree observedTree;
	
	private Button addResourceBtn;
	private Button removeResourceBtn;
	private Button renameBtn;
	private Button refreshBtn;
	
	private Button importModelBtn;
	private Button exportModelBtn;
	
	
	public ButtonBar(Composite parent, int style, Tree observerdTree) {
		super(parent, style);
		this.observedTree = observerdTree;
		createButtons(this, SWT.DEFAULT);
	}
	
	protected void createButtons(Composite parent, int style){
		addResourceBtn = new Button(parent, style);
		addResourceBtn.setText(Constants.ADD_CONCEPT);
		
		removeResourceBtn = new Button(parent, style);
		removeResourceBtn.setText(Constants.REMOVE_CONCEPT);
		
		renameBtn = new Button(parent, style);
		renameBtn.setText(Constants.RENAME);
		
		refreshBtn = new Button(parent, style);
		refreshBtn.setText(Constants.REFRESH);
		
		importModelBtn = new Button(parent, style);
		importModelBtn.setText(Constants.IMPORT);
		
		exportModelBtn = new Button(parent, style);
		exportModelBtn.setText(Constants.EXPORT);
	}
	

}
